package com.ttg.pojo;

//~--- non-JDK imports --------------------------------------------------------

import com.fasterxml.jackson.annotation.JsonFormat;
import com.ttg.utils.DateUtil;

import java.util.Date;

//~--- JDK imports ------------------------------------------------------------

//~--- classes ----------------------------------------------------------------

/**
 * Class QueryOrderRespDTO
 * Description 查询订单号响应实体
 * Create 2016-07-15 09:57:22
 *
 * @author Ardy
 */
public class QueryOrderRespDTO extends GwBasicRespParameters {

    /**
     * Field merchantId
     * Description
     */
    private String merchantId;

    /**
     * Field signatureAlgorithm
     * Description 加密方式，固定为RSA
     */
    private String signatureAlgorithm;

    /**
     * Field signatureInfo
     * Description 加签字符串
     */
    private String signatureInfo;

    /**
     * Field merOrderId
     * Description 商户订单号
     */
    private String merOrderId;

    /**
     * Field transAmt
     * Description 订单金额
     */
    private Integer transAmt;

    /**
     * Field orderTime
     * Description 订单时间
     */
    private Date orderTime;

    /**
     * Field orderStatus
     * Description 订单状态
     */
    private String orderStatus;

    /**
     * Field orderCompleteTime
     * Description 订单完成时间
     */
    private Date orderCompleteTime;

    /**
     * Method getSignatureAlgorithm
     * Description 说明：
     *
     * @return 返回值说明：
     */
    public String getSignatureAlgorithm() {
        return signatureAlgorithm;
    }

    /**
     * Method setSignatureAlgorithm
     * Description 说明：
     *
     * @param signatureAlgorithm 说明：
     */
    public void setSignatureAlgorithm(String signatureAlgorithm) {
        this.signatureAlgorithm = signatureAlgorithm;
        this.allParameters.put("signatureAlgorithm", signatureAlgorithm);
    }

    /**
     * Method getSignatureInfo
     * Description 说明：
     *
     * @return 返回值说明：
     */
    public String getSignatureInfo() {
        return signatureInfo;
    }

    /**
     * Method setSignatureInfo
     * Description 说明：
     *
     * @param signatureInfo 说明：
     */
    public void setSignatureInfo(String signatureInfo) {
        this.signatureInfo = signatureInfo;
        this.allParameters.put("signatureInfo", signatureInfo);
    }

    /**
     * Method toString
     * Description 说明：
     *
     * @return 返回值说明：
     */
    @Override
    public String toString() {
        return "QueryOrderRespDTO{" + "merchantId='" + merchantId + '\'' + ", signatureAlgorithm='"
               + signatureAlgorithm + '\'' + ", signatureInfo='" + signatureInfo + '\'' + ", merOrderId='" + merOrderId
               + '\'' + ", transAmt=" + transAmt + ", orderTime=" + orderTime + ", orderStatus='" + orderStatus + '\''
               + ", orderCompleteTime=" + orderCompleteTime + "} " + super.toString();
    }

    /**
     * Method getMerchantId
     * Description 说明：
     *
     * @return 返回值说明：
     */
    public String getMerchantId() {
        return merchantId;
    }

    /**
     * Method setMerchantId
     * Description 说明：
     *
     * @param merchantId 说明：
     */
    public void setMerchantId(String merchantId) {
        this.merchantId = merchantId;
        this.allParameters.put("merchantId", merchantId);
    }

    /**
     * Method getMerOrderId
     * Description 说明：
     *
     * @return 返回值说明：
     */
    public String getMerOrderId() {
        return merOrderId;
    }

    /**
     * Method setMerOrderId
     * Description 说明：
     *
     * @param merOrderId 说明：
     */
    public void setMerOrderId(String merOrderId) {
        this.merOrderId = merOrderId;
        this.allParameters.put("merOrderId", merOrderId);
    }

    /**
     * Method getTransAmt
     * Description 说明：
     *
     * @return 返回值说明：
     */
    public Integer getTransAmt() {
        return transAmt;
    }

    /**
     * Method setTransAmt
     * Description 说明：
     *
     * @param transAmt 说明：
     */
    public void setTransAmt(Integer transAmt) {
        this.transAmt = transAmt;
        this.allParameters.put("transAmt", String.valueOf(transAmt));
    }

    /**
     * Method getOrderTime
     * Description 说明：
     *
     * @return 返回值说明：
     */
    @JsonFormat(
        pattern  = "yyyy-MM-dd HH:mm:ss",
        timezone = "GMT+8"
    )
    public Date getOrderTime() {
        return orderTime;
    }

    /**
     * Method setOrderTime
     * Description 说明：
     *
     * @param orderTime 说明：
     */
    public void setOrderTime(Date orderTime) {
        this.orderTime = orderTime;
        this.allParameters.put("orderTime", DateUtil.date2Str(orderTime));
    }

    /**
     * Method getOrderStatus
     * Description 说明：
     *
     * @return 返回值说明：
     */
    public String getOrderStatus() {
        return orderStatus;
    }

    /**
     * Method setOrderStatus
     * Description 说明：
     *
     * @param orderStatus 说明：
     */
    public void setOrderStatus(String orderStatus) {
        this.orderStatus = orderStatus;
        this.allParameters.put("orderStatus", orderStatus);
    }

    /**
     * Method getOrderCompleteTime
     * Description 说明：
     *
     * @return 返回值说明：
     */
    @JsonFormat(
        pattern  = "yyyy-MM-dd HH:mm:ss",
        timezone = "GMT+8"
    )
    public Date getOrderCompleteTime() {
        return orderCompleteTime;
    }

    /**
     * Method setOrderCompleteTime
     * Description 说明：
     *
     * @param orderCompleteTime 说明：
     */
    public void setOrderCompleteTime(Date orderCompleteTime) {
        this.orderCompleteTime = orderCompleteTime;
        this.allParameters.put("orderCompleteTime", DateUtil.date2Str(orderCompleteTime));
    }
}


//~ Formatted by Jindent --- http://www.jindent.com
